Link Search Menu Expand Document

Perks and Traits

Подкатегории

Функции


add_trait

funcX

void add_trait(int traitID)

adds the specified trait to the player


apply_heaveho_fix

void apply_heaveho_fix

get_perk_available

int get_perk_available(int perk)

get_perk_owed

int get_perk_owed

remove_trait

void remove_trait(int traitID)

set_perk_freq

void set_perk_freq(int value)

Sets the number of levels between each perk. Setting to 0 will reset it back to the default. This overrides the effects of the skilled trait. Not saved into the save game, so needs to be called once per reload. Be careful not to let the player obtain a perk when no perks are available to pick, or the game may crash.


set_perk_level_mod

void set_perk_level_mod(int levels)

Sets a modifier between +25 and -25 that is added/subtracted from the player’s level for the purposes of deciding which perks can be chosen.


set_perk_owed

void set_perk_owed(int value)

set_pyromaniac_mod

void set_pyromaniac_mod(int bonus)

set_swiftlearner_mod

void set_swiftlearner_mod(int bonus)